package com.tongcheng.feign;

import com.tongcheng.ResultDate;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

import java.util.List;
import java.util.Map;

@FeignClient(value = "tongcheng-client-coupons")
public interface CouponsseviceFeign {
    @PostMapping(value = "/coupons/addCoupons",produces =  MediaType.APPLICATION_JSON_UTF8_VALUE)
    ResultDate addCoupons(Map map);
    @GetMapping(value = "/coupons/queryCouponsByactid",produces =  MediaType.APPLICATION_JSON_UTF8_VALUE)
    ResultDate queryCouponsByactid(Integer activity_id);
    @GetMapping(value = "/coupons/delCoupons",produces =  MediaType.APPLICATION_JSON_UTF8_VALUE)
    ResultDate delCoupons(Integer coupons_id);
    @GetMapping(value = "/coupons/queryCouponsByuserid",produces =  MediaType.APPLICATION_JSON_UTF8_VALUE)
    ResultDate queryCouponsByuserid(Integer userId);
    @PostMapping(value = "/coupons/updateCoupons",produces =  MediaType.APPLICATION_JSON_UTF8_VALUE)
    ResultDate updateCoupons(@RequestBody Map map);
    @GetMapping(value = "/coupons/queryAllCoupons",produces =  MediaType.APPLICATION_JSON_UTF8_VALUE)
    ResultDate queryAllCoupons();
}
